;define(function (require) {
	'use strict';
	var $=require('jquery');
	/**
	 * params.whichObjToBeAftered
	 * params.callback(childMenuObj)绑定事件
	 * @param {Object} params
	 */
	$.fn.createMapNtChildTabs=function(params){
		$('.map-boxWrap').css({'padding-top':'37px'});
		var $obj = params.whichObjToBeAftered;
		var html = '<div class="childMenu"><ul><li data-tid="sea-front">沿海前沿区域</li><li data-tid="sea-mounting">沿海乡镇</li><li data-tid="sea-cneter">市级中心镇</li><li data-tid="sea-count">沿江乡镇</li></ul></div>';
		$obj.after(html);
		var style = '<style>.childMenu{position:absolute;top:62px;left:20px;z-index:10;border-top:1px solid #fff;border-left:1px solid #fff}\
		.childMenu ul li{float:left;height:20px;line-height:20px;padding:8px;cursor:pointer;boder:1px solid #ddd;background:#eee;}\
		.childMenu ul li:hover,.childMenu ul li.on{boder:1px solid #ddd;background:#9bd4f1;}</style>';
		var $child = $obj.next('.childMenu');
		$child.prepend(style);
		$obj.parent('div').css('position','relative');
		if(params.callback){
			params.callback($child);
		}
	}
	
	$.fn.clearMapNtChildTabs=function(){
		if($('.childMenu')){
			$('.childMenu').find('li').off('click');
			$('.childMenu').remove();
		}
	}
	
	return $;
})